]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
inputMethod: Honor the HIDDEN_TEXT hint of IBusInputHint
authorJoan Torres Lopez <joantolo@redhat.com>
Thu, 29 Jan 2026 13:04:40 +0000 (14:04 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 3 Feb 2026 16:29:20 +0000 (16:29 +0000)
Makes the pre-edit text hidden with a "_".

This hint was added in IBus 1.5.34, although if IBus doesn't support it,
it will silently fallback to no-op which is fine.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4053>

js/misc/inputMethod.js

index f0c39e77b35bb0c3f46fcc6335093991f5eb8aa2..4d123c31f2256a218b8e4b03ae9754e034d83d0d 100644 (file)
@@ -291,6 +291,8 @@ export const InputMethod = GObject.registerClass({
             ibusHints |= IBus.InputHints.UPPERCASE_WORDS;
         if (hints & Clutter.InputContentHintFlags.SENSITIVE_DATA)
             ibusHints |= IBus.InputHints.PRIVATE;
+        if (hints & Clutter.InputContentHintFlags.HIDDEN_TEXT)
+            ibusHints |= IBus.InputHints.HIDDEN_TEXT;
 
         this._hints = ibusHints;
         if (this._context)